'use strict'

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = (app) => {
  const { router, controller } = app

  // 公共接口
  require('./router/common')(router, controller)
  // 用户相关
  require('./router/user')(router, controller)
  // 墙相关
  require('./router/wall')(router, controller)
  // 留言相关
  require('./router/leaveword')(router, controller)
  // 后台管理
  require('./router/admin')(router, controller)
}
